package com.shenzhenai.module_principles.demo5;

/**
 * @author huangzehui
 * @date 2025/8/18 13:31 周一
 * @description
 *
 * 19.设计模式-设计原则(迪米特法则案例)
 * https://www.bilibili.com/video/BV1Yt4y1B7Cm?spm_id_from=333.788.player.switch&vd_source=e07cc8cc94eb22bd76722071b03cd199&p=19
 */
public class Client {


    public static void main(String[] args) {
        Agent agent = new Agent();

        Star star = new Star("林青霞");
        Fans fans = new Fans("李四");
        Company company = new Company("黑马媒体公司");

        agent.setStar(star);
        agent.setFans(fans);
        agent.setCompany(company);


        agent.meting();
        agent.business();
    }

}
